package com.wind.base;

import android.os.Environment;

/**
 * Created by wind on 2017/3/1.
 */

public class C {
    public static class Char{
        public static final String CENTER_DOT=" · ";
    }
    public static class FORMAT{
        public static final String GIF = ".gif";
    }
    public static class Version{
        public static final String API_VERSION="v1";
        public static final String APP_VERSION = "1.0.0";
    }
    public static class Pack{

        public static String PACK_NAME_WEIBO="com.sina.weibo";
        public static String PACK_NAME_WEIXIN="com.tencent.mm";
        public static String PACK_NAME_QQ="com.tencent.mobileqq";

        //--------------视频类
        //优酷
        public static String PACK_NAME_YOUKU="com.youku.phone";
        //腾讯视频
        public static String PACK_NAME_QQLIVE="com.tencent.qqlive";
        //爱奇艺
        public static String PACK_NAME_QIYI="com.qiyi.video";
        //虎牙
        public static String PACK_NAME_HUYA="com.duowan.kiwi";
        //抖音
        public static String PACK_NAME_DOUYIN="com.ss.android.ugc.aweme";
        //斗鱼
        public static String PACK_NAME_DOUYU="air.tv.douyu.android";
        //--------------出行类
        //滴滴出行
        public static String PACK_NAME_DIDI="com.sdu.didi.psnger";
        //摩拜
        public static String PACK_NAME_MOBIKE="com.mobike.mobikeapp";
        //百度地图
        public static String PACK_NAME_BAIDU_MAP="com.baidu.BaiduMap";
        //高德地图
        public static String PACK_NAME_GD_MAP="com.autonavi.minimap";



        //--------------购物类
        //淘宝
        public static String PACK_NAME_TAOBAO="com.taobao.taobao";
        //天猫
        public static String PACK_NAME_TMALL="com.tmall.wireless";
        //京东
        public static String PACK_NAME_JD="com.jingdong.app.mall";
        //美团
        public static String PACK_NAME_MEITUAN="com.sankuai.meituan.takeoutnew";
        //饿了么
        public static String PACK_NAME_ELE="me.ele";

        //-------------音乐类


    }
    public static class Key{
        public static final String UMENG_APPKEY="58cf4bef3eae252b79000fca";

        public static final String WEIXIN_APPKEY="wx3d2f8e6ff9127c85";
        public static final String WEIXIN_SECRET="67a02db20d5a9631eb821b749b7c26f9";

        public static final String WEIBO_APPKEY="3819362800";
        public static final String WEIBO_SECRET="2489fffdbdd75dce29f1e845ac378436";


        public static final int REQUESTCODE_VIPCENTER = 1000;


        public static final String SPLIT_CHAR = "#";
        //是否错误重试的layout
        public static final String SHOW_ERROR_RETRY_LAYOUT = "10";
    }
    public static class Value{
        public static final String APP_FOLDER= Environment.getExternalStorageDirectory().getAbsolutePath()+"/YW/";
        public static final String TEMP_IMAGE_PATH=APP_FOLDER+"/ImgTmp";
        public static final int MAX_PHOTO_COUNT = 9;

        public static final int REQUEST_CODE_GALLERY=100;
        public static final int REQUEST_CODE_CAMERA=101;

        //sp filename
        public static final String SP_FILENAME = "config";
    }
    public static class PREF_KEY{
        public static final String GENDER="gender";
        public static final String UID="uid";
        public static final String IM_TOKEN="im_token";
        /**
         * 地理位置相关
         */
        public static final String LOCATION_LATITUDE="latitude";
        public static final String LOCATION_LONGITUDE="longitude";
        public static final String LOCATION_PROVINCE="province";
        public static final String LOCATION_CITY="city";


        /**
         *   private String token;
         private String userId;
         private int is_vip;
         private String avatar;
         private String abode;
         private String birthday;
         private int sex;
         private String userName;
         private int status;
         */
        public static final String USER_TOKEN="user_token";
        public static final String USER_UID="user_uid";
        public static final String USER_IS_VIP="user_is_vip";
        public static final String USER_AVATAR="user_avatar";
        public static final String USER_NAME="user_name";
        public static final String USER_STATUS="user_status";


        public static final String CONFIG_CURMODE="config_curmode";
        public static final String CONFIG_IMKEY="config_imkey";
        public static final String CONFIG_IMSECRET="config_imsecret";
        public static final String CONFIG_IMSERVICE="config_imservice";
        public static final String CONFIG_STRATPAGE="config_startpage";
        public static final String CONFIG_ABOUTUS="config_aboutus";
        public static final String CONFIG_COSTPLATFORM="config_costplatform";
        public static final String CONFIG_PAYMODE="config_pingpp";





    }
    public static class Api{
        /**
         * 测试地址
         */
        static String DEBUG_BASE_URL="http://cargo.dsweixin.cc/";

        /**
         * 线上地址
         */
        static String RELEASE_BASE_URL="https://plain.dsweixin.cc/";

        public static String getBaseUrl(){
            String baseUrl=RELEASE_BASE_URL;
            if (Globe.sDebug){
                baseUrl=DEBUG_BASE_URL;
            }
            return baseUrl+ Version.API_VERSION+"/";
        }
        /**
         * 图片服务器地址
         */
        public static String IMAGE_SERVER_URL="https://plain.dsweixin.cc/upload";

        public static String getUrl(String part){
            return getBaseUrl()+part;
        }



    }



}
